import com.zhaotianhao.pojo.Funds;
import com.zhaotianhao.service.FundsService;
import org.apache.dubbo.config.annotation.DubboReference;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

/**
 * @Author Z-7
 * @Date 2022/3/5
 */
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = {"classpath:spring-mvc.xml"})
public class A {
    @DubboReference
    private FundsService fundsService;
    @Test
    public void test(){
        Funds funds = fundsService.queryDetail(3);
        System.out.println(funds);
    }
}